﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ModulesPage.Master" AutoEventWireup="true" CodeBehind="UserCreation.aspx.cs" Inherits="SwenAssignment3.UserCreationModule.UserCreation" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="ModulePage.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .auto-style1 {
            width: 100%;
        }
        .auto-style2 {
            width: 156px;
        }
        .auto-style3
        {
            text-decoration: underline;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <span class="auto-style3"><strong>User Creation</strong></span><table class="auto-style1">
        <tr>
            <td class="auto-style2">Username:</td>
            <td>
                <asp:TextBox ID="tbxUsername" runat="server" Height="20px" OnTextChanged="tbxUsername_TextChanged"></asp:TextBox>
&nbsp;<asp:Label ID="lblStatusUsername" runat="server" ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="auto-style2">Password:</td>
            <td>
                <asp:TextBox ID="tbxPassword" runat="server" TextMode="Password"></asp:TextBox>
&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbxPassword" ErrorMessage="Please type in your password" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="auto-style2">Retype Password:</td>
            <td>
                <asp:TextBox ID="tbxRetypePassword" runat="server" OnTextChanged="TextBox1_TextChanged"></asp:TextBox>
                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="tbxRetypePassword" ControlToValidate="tbxPassword" ErrorMessage="CompareValidator" ForeColor="Red">Please enter the same password</asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td class="auto-style2">StaffID:</td>
            <td>
                <asp:DropDownList ID="ddlStaffID" runat="server">
                    <asp:ListItem>-Select-</asp:ListItem>
                </asp:DropDownList>
                <asp:Label ID="lblStatusStaffID" runat="server" ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="auto-style2">Access Rights:</td>
            <td>
                <asp:RadioButtonList ID="rblAccess" runat="server" OnSelectedIndexChanged="rblAccess_SelectedIndexChanged">
                    <asp:ListItem>Administrator</asp:ListItem>
                    <asp:ListItem>Management Executive</asp:ListItem>
                    <asp:ListItem>Receptionist</asp:ListItem>
                </asp:RadioButtonList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="rblAccess" ErrorMessage="Please choose one of the access rights" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="auto-style2">&nbsp;</td>
            <td>
                <br />
                <asp:ImageButton ID="btnCreate" runat="server" Height="55px" Width="94px" ImageUrl="~/Pictures/CreateButton1.png" OnClick="btnCreate_Click"/>
                <asp:ImageButton ID="btnCancel" runat="server" Height="55px" Width="111px" ImageUrl="~/Pictures/BackButton1.png" OnClick="btnCancel_Click" OnClientClick="history.back()"/>
            </td>
        </tr>
    </table>
</asp:Content>
